#include <iostream>
#include <exception>

#include "files_cleaner.hpp"



int main(int /*argc*/, char** /*argv*/)
{
  try
  {
    alex::utils::files_cleaner temp_files_cleaner{"/home/alex/test"};
    for (auto&& entity : temp_files_cleaner.list_of_entities_to_remove())
    {
      std::cout << entity.path() << "\n";
    }
    temp_files_cleaner.remove_all();
  }
  catch (const std::exception& ex)
  {
    std::cout << "Error: " << ex.what() << "\n";
    return 1;
  }

  return 0;
}
